hvm: Intercept reads of MSR_IA32_MCG_CAP and return 0.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 29 Aug 2007 13:57:12 +0000 (14:57 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 29 Aug 2007 13:57:12 +0000 (14:57 +0100)
commitfa505361f6a80ae310701fd42adadf768216dbfb
tree1195970beb77827bdad5119f20874aa8776a7f7e
parent17af24e1892dc45e2cca26a9bed9d8a09d715c67
hvm: Intercept reads of MSR_IA32_MCG_CAP and return 0.

This indicates no  machine check "units", which agrees more closely
with Xen's super-minimal machine check architecture (just enough to
allow Windows to run). This fixes a bug that occurs when migrating a
RHEL4-64bit guest to a host with fewer machine check units than the
original host.  These host physical details shouldn't be leaking
through to guests.

Signed-off-by: David Lively <dlively@virtualiron.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c